package com.yeban.javase.day03.test01;

import com.yeban.javase.day03.test01.Employee;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/11
 */
public class EmployeeUtil {

    public static double bonus(Employee e) {
        double bonus = e.getSalary();
        double newSalary = (bonus > 10000) ? bonus*1.2 : bonus*1.1;

        e.setSalary(newSalary);
        return newSalary;
    }
}
